home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / sounds / tools / soundzap-2.0.lha / SoundZAP.h < prev   
C/C++ Source or Header  |  1992-03-28  |  1KB  |  60 lines

  1. void GiveUsage();
  2. void ProcessOpt(struct options *, char *);
  3. void CleanUp(struct options *, int);
  4. void AnalyzeData(struct options *);
  5. void GuidoCheck(struct options *);
  6. void ConvertRaw(struct options *);
  7. void WriteIFFStuff(struct options *);
  8. void ConvertVOC(struct options *);
  9. void ConvertAU(struct options *);
  10. void maketable(signed char *, int);
  11. int  ulaw2linear(unsigned char);
  12. int  getscale(struct options *);
  13.  
  14. #define MAX(a,b) (((a) > (b)) ? (a) : (b))
  15.  
  16. #define DEFAULT_SIZE 51200
  17. #define DEFAULT_RATE 11395
  18.  
  19. #define RAW     'r'
  20. #define AU      'u'
  21. #define IFF     'i'
  22. #define VOC     'v'
  23. #define UNKNOWN 'k'
  24.  
  25. struct options
  26. {
  27.     ULONG BuffSize;
  28.     BOOL FlipSign;
  29.     BOOL KillChunk;
  30.     UWORD SampRate;
  31.     BOOL IFFOut;
  32.     char InType;
  33.     BOOL MuLaw;
  34.     BOOL SampChk;
  35.     ULONG Size;
  36.     UBYTE *Data;
  37.     char inname[33];
  38.     char outname[33];
  39. };
  40.  
  41. char Author[] = {"SoundZAP V1.0  "};
  42.  
  43. char Annotation[] = {"SoundZAP by mrc113@psuvm.psu.edu   "};
  44.  
  45. char *ErrorMessages[] = {
  46.  
  47.     "How the hell did you get this message???\n",
  48.     "No filenames specified!\n",
  49.     "No buffer size specified!\n",
  50.     "No sample rate specified!\n",
  51.     "Invalid switch!\n",
  52.     "Couldn't allocate memory!\n",
  53.     "Input file not found!\n",
  54.     "Probably text, not sound.\n",
  55.     "Error opening output file!\n",
  56.     "Unsupported compression format.\n"
  57. };
  58.  
  59. struct FileHandle *in, *out;
  60.